package com.test.shiyan1;

public class dayu {
    public static void main(String[] args) {
        int[] dpm={0,31,28,31,30,31,30,31,31,30,31,30,31};
        int month = 5;
        int day=1;
        for (int i =0;i<month;i++){
            day=day+dpm[i];
        }
        day =day%5;
        if (day>0 && day<=3)
            System.out.println("1");
        else
            System.out.println("0");
    }
}
